package com.zxq.ai.application.api;

import com.zxq.ai.domain.user.account.CashAccount;
import com.zxq.ai.domain.user.account.CashAccountOperateLog;

import java.util.List;

/**
 * CUser 与【现金账户】有关的【用例】
 */
public interface ICUserCashAccount {

    /**
     * 账户总览
     *
     * @param userId
     * @return
     */
    CashAccount queryAccountOverview(String userId);

    /**
     * 查看账户流水
     * @param userId
     */
    List<CashAccountOperateLog> queryAccountOperateRecord(String userId);


    /**
     * 【现金】提现
     * @param userId
     * @param amount
     */
    void cashWithdraw(String userId, Long amount);

}
